STEP 14: We're almost done! Now we just need to tell the user the result of our prediction.

Remember, when we want to use a number inside a string, we need to cast it using str().

  • In , drag in Convert to String to the bottom of your program.
  • Change the variable inside the parentheses from my_var to predicted_sleep.
  • Change the variable to the left of the = sign from my_var to sleep_string.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)